﻿using UnityEngine;
using System.Collections;

public class RespawnPlayer : MonoBehaviour {

	Vector3 startPosition;

	// Use this for initialization
	void Start () {
		startPosition = this.transform.position;
	}
	
	// Update is called once per frame
	void Update () {
	
	}


	public void Respawn()
	{
		this.rigidbody.velocity = Vector3.zero;
		this.transform.position = startPosition;

	}
}
